<template>
  <div class="home">
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor
     v-for="floor in floorList"
     :key="floor.id"
     :floor='floor'
     ></Floor>
    <Brand></Brand>
  </div>
</template>

<script>

import ListContainer from './components/ListContainer'
import Recommend from './components/Recommend'
import Rank from './components/Rank'
import Like from './components/Like'
import Floor from './components/Floor'
import Brand from './components/Brand'
import { mapState } from 'vuex'
export default {
  name:'Home',
  components: { ListContainer,Recommend,Rank,Like,Floor,Brand },
  computed: {
    ...mapState({
      floorList: state => state.home.floorList
    })
  },
  mounted(){
    this.$store.dispatch('getFloorList')
  }
}
</script>

<style scoped>

</style>